package cn.tansanqinger.dao.sql.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import cn.tansanqinger.dao.sql.ILoginSqlDao;
import cn.tansanqinger.pojo.Admin;

@Repository
public class LoginSqlDaoImpl {
	
	@Autowired
	private ILoginSqlDao loginDao;
	
	public Admin selectAdminAcount(String account) {
		QueryWrapper<Admin> qw = new QueryWrapper<Admin>();
		qw.lambda().eq(Admin::getAccount, account);
		return loginDao.selectOne(qw);
	}
}
